logging module

Logging utilities

binarycpython.utils.logging_functions.verbosity_level_dict

Description

Type

TYPE

binarycpython.utils.logging_functions.verbose_print(message, verbosity, minimal_verbosity, newline='\\n', logger=None)[source]

Function that decides whether to print a message based on the current verbosity and its minimum verbosity. If verbosity is equal or higher than the minimum, then we print.

Args:

message (str): message to print. verbosity (int): current verbosity level. minimal_verbosity (int): threshold verbosity above which to print. newline (str, optional): newline character (or set of characters), defaults to ``

`` but `` `` (carriage return) might be useful.

logger: logger object that can handle the logging.

Return type

None